package com.example.victory.exception;

import lombok.Data;

import java.util.Date;

/**
 * http请求返回错误信息
 */
@Data
public class HttpError {
    private Integer code = 0;
    private String message;
    private Long timestamp;

    public HttpError(Integer code, String message) {
        this.code = code;
        this.message = message;
        this.timestamp = new Date().getTime();
    }
}
